/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.awt.image.BufferedImage;

/**
 *
 * @author Daniel
 */
public class World {

    private BufferedImage _map[][];
    private int _width;
    private int _height;

    public World(BufferedImage map[][], int width, int height) {
        _map = map;
        _width = width;
        _height = height;
    }

    public World() {
        _width  = -1;
        _height = -1;
    }

    public BufferedImage get_Boxel(int x, int y) {
        return _map[y][x];
    }

    public void set_map(BufferedImage map[][]) {
        _map = map;
    }

    public BufferedImage[][] get_map() {
        return _map;
    }

    public boolean isEmpty() {
        if (_map == null || _width == -1 || _height == -1) {
            return false;
        } else {
            return true;
        }
    }

    public int get_width() {
        return _width;
    }

    public int get_height() {
        return _height;
    }

    public void set_width(int width) {
        _width = width;
    }

    public void set_height(int height) {
        _height = height;
    }

    public void set_Boxel(BufferedImage b, int x, int y) {
        _map[y][x] = b;
    }
}
